// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'vuex'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import VueJsonp from 'vue-jsonp'
import QRCode from 'qrcode'


Vue.use(Vuex);
Vue.use(QRCode);
Vue.use(VueJsonp);
Vue.use(iView);
Vue.config.productionTip = false

const store = new Vuex.Store({//store对象
  state:{
      show:false,
      superior1:"",
      user:{
        address:null,
        createCardBonus:null,
        createTime:null,
        goodsNumber:"",
        level:null,
        password:null,
        phone:"",
        superior1:0,
        superior2:0,
        superior3:0,
        useCardBonus:null,
        userBalance:null,
        userBonus:0,
        userId:0,
        username:"",
        openId:"",
      },
      manager:{
        username:"",
        password:"",
        status:"",
        userId:""
      }
  }
})
/* eslint-disable no-new */
new Vue({
  el: '#app',
  store,
  router,
  components: { App },
  template: '<App/>'
})
